package demo.bean;

import java.time.LocalDateTime;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class MyApplicationRunner implements ApplicationRunner{
	
	public MyApplicationRunner(){
		System.out.println("MyApplicationRunner() run,"+LocalDateTime.now());
	}
	
	@Override
	public void run(ApplicationArguments args) throws Exception{
		
		System.out.println("MyApplicationRunner.run() run,"+LocalDateTime.now());
	}

}